﻿using HlELock.Core;
using Prism.Commands;
using Prism.Mvvm;
using Prism.Services.Dialogs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace HlELock.Core.ViewModels
{
    public class SendingUserControlViewModel : BindableBase, IDialogAware
    {
        public SendingUserControlViewModel()
        {
        }

        public string Title => AppHelper.GetResourceString("FaKa");

        public event Action<IDialogResult> RequestClose;

        public bool CanCloseDialog()
            => true;

        public void OnDialogClosed()
        {
        }

        public void OnDialogOpened(IDialogParameters parameters)
        {
            var func = parameters.GetValue<Action>("func");
            func?.Invoke();
        }
    }
}
